package com.example.designPattern.adapter.classAdapter;

/**
 * 类适配器
 */
public class Phone {

    public void changing(VoltageAdapter voltageAdapter){
        if(voltageAdapter.output5V() == 5){
            System.out.println("可以充电");
        }else {
            System.out.println("不可以充电");
        }
    }
}
